package com.dayu.design.行为型.策略模式;

import lombok.SneakyThrows;

/**
 * @author dayu
 * @create 2023-12-18 23:32
 */
public class MainTest {
    @SneakyThrows
    public static void main(String[] args) {
        Strategy strategy = (Strategy) CalcEnum.ADD.getClazz().newInstance();
        System.out.println(strategy.calc(10, 5));
    }
}
